import request from '@/utils/request'


export function getAllCategory() {
  return request({
    url: '/zhongyi/examination/category/all',
    method: 'get'
  })
}


export function saveCategory(data) {
  return request({
    url: `/zhongyi/examination/category/save`,
    method: 'post',
    data
  })
}


export function GetExaminationByCategoryId(id) {
  return request({
    url: `/zhongyi/examination/examination/${id}`,
    method: 'get'
  })
}

export function saveExamination(data) {
  return request({
    url: `/zhongyi/examination/examination/save`,
    method: 'post',
    data
  })
}